<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 
            []  属性选择器
         */


        input[type="text"] {
            width: 100px;
            height: 100px;
        }

        div[class="a"] {
            color: red;
        }

        div[class^="a"] {
            color: blue;
        }
    </style>
</head>

<body>



    <div class="a">111</div>
    <div class="ab">111</div>

    <input type="text">

    <input type="button">
</body>

</html>